<!DOCTYPE html>
<html lang="zh">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
	<meta name="apple-touch-fullscreen" content="yes">
	<meta name="format-detection" content="telephone=no">
	<meta name="format-detection" content="email=no">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="HandheldFriendly" content="true">
	<meta name="MobileOptimized" content="320">
	<meta name="screen-orientation" content="portrait">
	<meta name="x5-orientation" content="portrait">
	<meta name="full-screen" content="yes">
	<meta name="x5-fullscreen" content="true">
	<meta name="browsermode" content="application">
	<meta name="x5-page-mode" content="app">
	<meta name="msapplication-tap-highlight" content="no">
	<title>必发彩票</title>
	<style>
		html {
			font-family: Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB, Heiti SC, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
			-ms-text-size-adjust: 100%;
			-webkit-text-size-adjust: 100%;
		}

		button,
		html,
		input,
		select,
		textarea {
			font-family: PingFang SC, Helvetica Neue, Helvetica, Arial, Hiragino Sans GB, Heiti SC, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
		}

		h1,
		h2,
		h3 {
			font-weight: 400;
		}

		body {
			background-color: #efeef4;
			margin: 0;
			height: 100%;
			min-height: 100%;
			overflow-x: hidden;
			-webkit-overflow-scrolling: touch;
			-webkit-touch-callout: none;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
		}

		#app {
			height: 100%;
			-webkit-tap-highlight-color: transparent;
		}

		* {
			box-sizing: border-box;
		}

		.loading {
			width: 1em;
			margin-right: .3em;
			display: inline-block;
			-webkit-transform: translateY(-2px);
			transform: translateY(-2px);
		}

		.svgimg {
			width: 1.1em;
			height: 1.1em;
			padding: 0;
			margin: -.3em 0 0 0;
		}

		.container {
			height: 100%;
			position: fixed;
			width: 100%;
			top: 0;
			left: 0;
			display: none;
		}

		.container>div {
			width: 100%;
			height: 100%;
		}

		.main {
			height: 100%;
			overflow: hidden;
			background: url(image/appBg.jpg);
			background-size: 100%;
			font-size: inherit;
			padding-top: 2.3em;
			padding-bottom: 2.5em;
		}

		.intro a {
			display: block;
			background-size: 100%;
			width: 5em;
			height: 5em;
			margin: 0 auto;
			margin-top: 2em;
		}

		.intro h1 {
			text-align: center;
			font-size: 1.26em;
			margin-top: .4em;
		}

		.intro p {
			text-align: center;
			font-size: .6em;
			line-height: 2em;
		}

		.appledetail {
			background: #fff;
			display: none;
			overflow: hidden;
			margin-top: 2.3em;
			position: relative;
		}

		.intro h1,
		.intro p {
			color: #fff;
		}

		.downLink {
			margin-top: 3em;
			width: 100%;
		}

		.downLink a {
			display: block;
			margin: 0 auto;
			width: 14em;
			text-align: center;
			color: #fff;
			border: 1px solid #fff;
			border-radius: .45em;
			font-size: .85em;
			height: 2.6em;
			line-height: 2.6em;
			margin-bottom: 1.2em;
			padding-left: 2em;
			position: relative;
		}

		a {
			background: rgba(0, 0, 0, 0);
			text-decoration: none;
			-webkit-tap-highlight-color: transparent;
			color: inherit;
			cursor: pointer;
		}

		img {
			border: 0;
			vertical-align: middle;
		}

		.logo {
			position: absolute;
			display: block;
			width: 5em;
			height: 5em;
			background-size: cover;
			margin-top: -6.3em;
			margin-left: calc((100% - 5em)/2);
		}

		.detail-downbtn {
			color: #eb0002;
			background: #fff;
			display: block;
			width: 11em;
			text-align: center;
			border: 1px solid;
			border-radius: .35em;
			padding: .6em 0;
			font-size: .75em;
			margin: .4em auto;
		}

		.downLink a i {
			position: absolute;
			left: 1.2em;
			font-size: 1.6em;
		}

		.active {
			display: block!important;
		}

		.installText {
			text-align: center;
			font-size: .7em;
			color: #333;
			padding: 2em 0;
		}

		.line {
			border: none;
			height: 1px;
			background-image: -webkit-linear-gradient(90deg, #d0d0d0, #d0d0d0 50%, rgba(0, 0, 0, 0) 50%);
			margin: 0;
		}

		.tip {
			font-size: .65em;
			color: #666;
			text-align: center;
			margin: .7em 0;
		}

		.end {
			text-align: center;
			position: relative;
			height: 1em;
			margin: 0;
			padding: 1em 0;
		}

		.end:before {
			position: absolute;
			top: 50%;
			width: 100%;
			content: '';
			display: block;
			height: 1px;
			background-image: -webkit-linear-gradient(90deg, #d0d0d0, #d0d0d0 50%, rgba(0, 0, 0, 0) 50%);
		}

		.end span {
			background: #fff;
			display: inline-block;
			position: absolute;
			font-size: .7em;
			padding: 0 1em;
			margin-left: -3.45em;
			margin-top: -.7em;
			color: #999;
		}

		.bgImg {
			background-image: url(image/logo.jpg);
			border-radius: 1em;
		}
	</style>
</head>

<body>
	<div id="app">
		<div id="container" class="container active">
			<div class="main">
				<div class="intro">
					<a id="logo" class="bgImg"></a>
					<h1 id="siteName">必发彩票</h1>
					<p>如遇原APP闪退或无法打开重新下载即可</p>
				</div>
				<div class="downLink">
					<a target="_blink" id="ioslink" href="javascript:;">
						<i class="iconfont">
							<img class="svgimg" src="">
						</i>点击下载iOS版</a>
					<a id="android" href="http://www.longtcp138.com/package/bifa-app-v1.0-for_test2.apk">
						<i class="iconfont">
							<img class="svgimg" src="">
						</i>点击下载安卓版</a>
				</div>
			</div>
		</div>
		<div id="appledetail" class="appledetail">
			<img src="image/apple-down-head.png" alt="" width="100%">
			<span id="logox" class="bgImg logo"></span>
			
			<a id="downIos" class="detail-downbtn" href="javascript:;">点击安装</a> <!-- href ios下载地址 -->
			<p class="installText">安装后请打开手机设置
				<br> 通用-设备管理-选择-信任 才能使用
				<br> 可参照以下图文步骤进行操作
			</p>
			<hr class="line">
			<p class="tip">部分浏览器可能无法安装，建议使用Safari浏览器操作</p>
			<img src="image/down-1.png" alt="" width="100%">
			<br>
			<br>
			<img src="image/down-2.png" alt="" width="100%">
			<br>
			<br>
			<img src="image/down-3.png" alt="" width="100%">
			<br>
			<br>
			<img src="image/down-4.png" alt="" width="100%">
			<p class="end">
				<span>已经到底啦</span>
			</p>
		</div>
	</div>

</body>

</html>
<script type="text/javascript">
	document.addEventListener('touchstart', function (e) {}, false);
	window.rem = document.body.clientWidth / 16
	window.em = Math.sqrt((rem - 20) * .9) + 20
	document.querySelector("html").style.fontSize = rem + 'px'
	document.body.style.fontSize = em + 'px'
	var container = document.getElementById('container')
	var appledetail = document.getElementById('appledetail')
	var ioslink = document.getElementById('ioslink')

	function setPage(v) {
		if (v) {
			container.className = 'container active'
			appledetail.className = 'appledetail'
		} else {
			container.className = 'container'
			appledetail.className = 'appledetail active'
		}
	}
	ioslink.addEventListener('click', function (e) {
		if (e.target.href.indexOf('javascript') > -1) {
			setPage()
		}
	}, false)
</script>
